home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / libg_261.zip / libg_261 / librx / Makefile.in < prev    next >
Makefile  |  1994-09-01  |  2KB  |  101 lines

  1. # Makefile for librx
  2. # Copyright (C) 1994 Free Software Foundation, Inc.
  3. # This file is part of GNU Rx
  4. # GNU Rx is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. # GNU Rx is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with GNU SED; see the file COPYING.  If not, write to
  14. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  15.  
  16. SHELL = /bin/sh
  17.  
  18. srcdir = @srcdir@
  19. VPATH = @srcdir@
  20. prefix = @PREFIX@
  21. exec_prefix = $(prefix)
  22. bindir = $(exec_prefix)/bin
  23. libdir = $(exec_prefix)/lib
  24. includedir = $(prefix)/include
  25. infodir = $(prefix)/info
  26.  
  27. #### Start of system configuration section. ####
  28.  
  29. CC = @CC@
  30. INSTALL = @INSTALL@
  31. DEFS = @DEFS@
  32. CFLAGS = -g 
  33. AR = ar
  34. AR_FLAGS = rc
  35. RANLIB = @RANLIB@
  36.  
  37. source=rx.c
  38. headers=rx.h
  39. ancillery=configure.in Makefile.in configure \
  40.       COPYING.LIB INSTALL INSTALL.rx ChangeLog DOC 
  41. distfiles=$(source) $(headers) $(ancillery)
  42. libobjs=rx.o
  43.  
  44. .c.o:
  45.     $(CC) -c $(CFLAGS) $(DEFS) -I$(srcdir) $<
  46.  
  47. all: librx.a
  48.  
  49. install:
  50.     $(INSTALL) librx.a $(libdir)/librx.a
  51.     $(RANLIB) $(libdir)/librx.a
  52.     $(INSTALL) $(srcdir)/rx.h $(includedir)/rx.h
  53.  
  54.  
  55. uninstall:
  56.     rm $(libdir)/librx.a
  57.     rm $(includedir)/rx.h
  58.  
  59. clean:
  60.     -rm -f $(libobjs) librx.a
  61.  
  62. distclean: clean
  63.     -rm Makefile config.status
  64.  
  65. mostlyclean: clean
  66.  
  67. realclean: distclean
  68.  
  69. TAGS:
  70.     etags $(source)
  71.  
  72. info:
  73.  
  74. install-info:
  75.  
  76. clean-info:
  77.  
  78. dvi:
  79.  
  80. check:
  81.  
  82. dist:    $(distfiles)
  83.     echo rx-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q rx.c` > .fname
  84.     rm -rf `cat .fname`
  85.     mkdir `cat .fname`
  86.     ln $(distfiles) `cat .fname`
  87.     tar chzf `cat .fname`.tar.gz `cat .fname`
  88.     rm -rf `cat .fname` .fname
  89.  
  90.  
  91. librx.a: $(libobjs)
  92.     rm -f librx.a
  93.     $(AR) $(AR_FLAGS) librx.a rx.o
  94.     $(RANLIB) librx.a
  95.  
  96. rx.o: rx.c rx.h
  97.